<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
        <meta charset="utf-8"/>
        <meta name="format-detection" content="telephone=no"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>图书详情预览</title>
		<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
</head>
<style type="text/css">
body{margin:0;padding:0}.main{width:100%;text-align:center}.phone{width:450px;margin:10px auto;position:relative}.iframeHtml{width:375px;height:650px;position:absolute;top:125px;left:37px}
</style>

<body>
    <div class="main">
        <div class="phone">
            <img src="comm/6.png"/>
            <iframe class="iframeHtml" frameborder="no" scrolling="auto" >
            </iframe>
        <div>
    </div>
    
</body>
<script type="text/javascript">
var urlinfo = window.location.href; 
var n = urlinfo.indexOf('?');
var book = urlinfo.substring(n,urlinfo.length);
$(".iframeHtml").attr("src","bookDetail.html"+book);
$(function(){var n=location.href;var m=getQueryStringArgs();var c,g,l;if(m.src!=undefined){c=m.src;if(m.discount!=undefined){l=m.discount}else{l=100}$(".iframeHtml").attr("src",c+".html?discount="+l);g=n.replace("index",c)}var d=navigator.userAgent.toLowerCase();var i=d.match(/ipad/i)=="ipad";var j=d.match(/iphone os/i)=="iphone os";var h=d.match(/midp/i)=="midp";var e=d.match(/rv:1.2.3.4/i)=="rv:1.2.3.4";var f=d.match(/ucweb/i)=="ucweb";var a=d.match(/android/i)=="android";var b=d.match(/windows ce/i)=="windows ce";var k=d.match(/windows mobile/i)=="windows mobile";if(i||j||h||e||f||a||b||k){preUrl=location.href.substr(0,location.href.lastIndexOf("/")+1);window.location.href=preUrl+$(".iframeHtml").attr("src")}});function getQueryStringArgs(){var b=(location.search.length>0?location.search.substring(1):""),e={},c=b.length?b.split("&"):[],g=null,d=null,h=null,f=0,a=c.length;for(f=0;f<a;f++){g=c[f].split("=");d=decodeURIComponent(g[0]);h=decodeURIComponent(g[1]);if(d.length){e[d]=h}}return e};    
</script>
</html>
